from random import randint

def pr_fibo(n):
    '''可输出斐波那契数列的任意值'''
    a,b = 1,0
    while a < n:
        print(a,sep=' ')
        a,b = a+b,a

n= int(input('Input n: '))
pr_fibo(n)


s = randint(1,50)
while True:
    ans = int(input('Enter a guess:'))
    if ans >s:
        print('Too high! Guess again.')
    elif ans < s:
        print('Too low! Guess again.')
    else:
        print('Congrats! You got it!')
        break







